package com.sinocare.project.common.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SystemAccount implements Serializable {
    private static final long serialVersionUID = 7256528685729328204L;
    private Integer userid;
    private String  phone;
    private String  password;
    private String  name;
    private String  customerCode;
    private Integer isAdmin;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GTM+8")
    private Date    createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GTM+8")
    private Date    updateTime;

    private Integer status;
    private String salt;
    private String storeName;
    private String roleName;
}
